package com.hdax.dm.Controller;

import com.hdax.dm.beans.item.Item;
import com.hdax.dm.dto.seniorityDto;
import com.hdax.dm.service.seniorityService;
import com.hdax.dm.utils.response.CommonResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;


@RestController
@RequestMapping("/item")
public class seniorityController {

    @Autowired
    private seniorityService seniorityService;

    /**
     * 首页热门演出分类排行
     */
    @PostMapping("index/seniority")
    public CommonResponse<List<seniorityDto>> seniority(@RequestBody Map<String,Long> itemTypeId){
        return seniorityService.seniority(itemTypeId);
    }
}
